/**
 * 
 */
package org.jinion.exception;

import org.jinion.util.StringTool;

/**
 * @author zhlmmc
 *
 */
public class JinionRuntimeException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 * @param message
	 */
	public JinionRuntimeException(String message){
		super(message);
	}
	
	/**
	 * 
	 * @param format
	 * @param args
	 */
	public JinionRuntimeException(String format, Object ... args){
		super(StringTool.buildString(format, args));
	}
	
	/**
	 * 
	 * @param re
	 */
	public JinionRuntimeException(Throwable re){
		super(re);
	}
	
	/**
	 * 
	 * @param message
	 * @param re
	 */
	public JinionRuntimeException(String message, RuntimeException re){
		super(message, re);
	}
	
	/**
	 * 
	 * @param re
	 * @param format
	 * @param args
	 */
	public JinionRuntimeException(RuntimeException re, String format, Object ... args){
		super(StringTool.buildString(format, args), re);
	}
	
}
